Skip to main content

word

Type

keyword

Summary

Designates a space-delimited or quoted string as part of a chunk expression.

Syntax

word

Description

Use the word keyword to refer to one or more words in a container.

A word is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single word can contain multiple characters and multiple items, but not multiple lines.

note

Words are delimited by double quotes ("), but not by curved quotes (“”). LiveCode does not treat curved quotes as quotes.

note

To refer to actual words in a chunk expression, i.e., words delimited by Unicode word breaks, use the keyword trueWord.

Examples

get last word of the long name of this stack
put it
local tString
put "Apples, peaches, and pears." into tString
put word 2 of tString
--> peaches,

glossary: chunk expression, container, delimit, double quote, keyword, quoted, Unicode

keyword: byte, character, codepoint, codeunit, item, line, paragraph, segment, sentence, string, token, trueWord, words

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?